package tmplateFun

import (
	"encoding/json"
	"strings"

	"ycoem/lib/db"
	model "ycoem/lib/models"
)

func GetNavicat() (obj interface{}) {

	str := db.Get(model.NavbarModel)
	json.Unmarshal([]byte(str), &obj)
	return
}
func DeleteLine(str string) string {
	//首页
	if str == "/" {
		return "/"
	}
	return strings.Replace(str, "/", "-", -1)
}
